<div ng-controller="PageInfoIndexCtrl">
  <div class="text-center bg-danger"><span class="h1">页面数据管理</span></div>
  <div class="text-center form-inline">
    <div class="form-group">

      <div class="input-group">
        <span class="input-group-addon">页面标题</span>
        <input type="text" ng-model="tbPageInfo.title" class="form-control" />
      </div>
      <div class="input-group">
        <span class="input-group-addon">描述信息</span>
        <input type="text" ng-model="tbPageInfo.info" class="form-control" />
      </div>

      <div class="input-group">
        <span class="input-group-addon">联系电话</span>
        <input type="text" ng-model="tbPageInfo.tel" class="form-control" />
      </div>

      <div class="input-group">
        <span class="input-group-addon">版权信息</span>
        <input type="text" ng-model="tbPageInfo.copyrigth" class="form-control"/>
      </div>

      <div class="input-group">
        <span class="input-group-addon">公司名称</span>
        <input type="text" ng-model="tbPageInfo.comname" class="form-control" />
      </div>

      <span class="btn btn-danger" ng-click="add();">添加</span>
    </div>
  </div>


<div>
<table class="table table-bordered table-striped table-hover">
<tr>
  <td>标题</td>
  <td>描述信息</td>
  <td>联系电话</td>
  <td>版权信息</td>
  <td>公司名称</td>
  <td>最后修改时间</td>
</tr>
<tr ng-repeat="d in list">
  <td><span ng-bind="d.title"></span></td>
  <td><span ng-bind="d.info"></span></td>
  <td><span ng-bind="d.tel"></span></td>
  <td><span ng-bind="d.copyrigth"></span></td>
  <td><span ng-bind="d.comname"></span></td>
  <td><span ng-bind="d.lastupdate"></span></td>
  <td>
    <span class="btn btn-danger btn-sm" ng-click="delete(d);">删除</span>
    <span class="btn btn-danger btn-sm" ng-click="update(d);">修改</span>
  </td>
</tr>
  </table>

<nav ng-if="page.pageCount>1" class="text-center">
  <ul class="pagination">
    <li>
      <a href="javascript:void(0);" ng-click="toPage(1);"><span>第一页</span></a>
    </li>
    <li>
      <a href="javascript:void(0);" ng-click="toPage(page.pageNumber-1);"><span>上一页</span></a>
    </li>
    <li>
      <a href="javascript:void(0);"><span>记录数/当前页数/-{{page.total}}/{{page.pageNumber}}/{{page.pageCount}}</span></a>
    </li>
    <li>
      <a href="javascript:void(0);" ng-click="toPage(page.pageNumber+1);"><span>下一页</span></a>
    </li>
    <li>
      <a href="javascript:void(0);"><span ng-click="toPage(page.pageCount);">最后一页</span></a>
    </li>
  </ul>
</nav>

  </div>
</div>
